#include <stdio.h>
#include <stdlib.h>
#include <limits.h>

int main ( int argc, char* argv[] )
{
    long input;
    long square;

    if ( argc != 2 ) {
        return 1;
    }

    input = strtol(argv[1], NULL, 10);

    if ( input < 0 || input >= LONG_MAX ) {
        return 1;
    }

    square = input * input;

    printf("%d\n", square);

    return 0;
}
